/*
 * Copyright (c) 2006 - 2022, webrx.cn All rights reserved.
 *
 */
package cn;

/**
 * <p>Project: app2022 - RegExp3
 * <p>Powered by webrx On 2022-01-13 16:40:09
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class RegExp3 {
    public static void main(String[] args) {
            String s = "张三";
            // ^李.+
        System.out.println(s.matches("^李.+"));//false
        System.out.println("李强".matches("^李.+"));//true
        System.out.println("李asfasfasfa强".matches("^李.+"));//true
        System.out.println("李abssss".matches("^李.."));//false

        System.out.println("张丽".matches(".*丽.*"));
        System.out.println("张丽丽".matches(".*丽.*"));
    }
}
